package com.qxp.simplerpc.connect;

import io.netty.bootstrap.AbstractBootstrap;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.handler.ssl.SslContext;

/**
 * @author qianxiaopeng
 */
public abstract class AbstractConnector {
    private ChannelInboundHandlerAdapter channelInboundHandlerAdapter;

    protected abstract void doConnect(AbstractBootstrap abstractBootstrap);

    protected abstract SslContext getSsL();

    public ChannelInboundHandlerAdapter getChannelInboundHandlerAdapter() {
        return channelInboundHandlerAdapter;
    }

    public void setChannelInboundHandlerAdapter(ChannelInboundHandlerAdapter channelInboundHandlerAdapter) {
        this.channelInboundHandlerAdapter = channelInboundHandlerAdapter;
    }
}
